import fetch from 'common/src/utils/fetch';

/**
 * 查询报名时间
 * @param {*} params 
 */
export function getListScRegisterTimeInfo (params) {
  let query = '?'
  for (const key in params) {
    query += key
    query += '='
    query += params[key]
    query += '&'
  }
  return fetch({
    url: '/api/cultureservice/ScRegisterTimeInfo' + query,
    method: 'get'
  })
}
/*
*新增报名时间
*/
export function addScRegisterTimeInfo(template) {
  return fetch({
    url: '/api/cultureservice/ScRegisterTimeInfo',
    method: 'post',
    data: template
  })
}
/**
 * 修改报名时间
 */
export function updateScRegisterTimeInfo(template) {
  return fetch({
    url: '/api/cultureservice/ScRegisterTimeInfo',
    method: 'put',
    data: template
  })
}
/**
 * 删除报名时间
 */
export function deleteScRegisterTimeInfo(idList) {
  return fetch({
    url: '/api/cultureservice/ScRegisterTimeInfo',
    method: 'delete',
    data: {
      'ids': idList
    }
  })
}
